﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加系统权限</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
    @if (TempData["Message"] != null)
    {
        <script>alert('@Html.Raw(TempData["Message"])');</script>
    }

    <div class="container mt-5">
        <div class="row">
            <div class="col-md-8 offset-md-2">
                <div class="card">
                    <div class="card-header bg-primary text-white">
                        添加系统权限
                    </div>
                    <div class="card-body">
                        <form asp-controller="UserAndRole" asp-action="AddPermissionSumbit">
                            <div class="form-group">
                                <label for="permissionName">权限名称</label>
                                <input type="text" class="form-control" id="permissionName" placeholder="请输入权限名称" name="permission_name" required>
                            </div>
                            <div class="form-group">
                                <label for="permissiondescription">权限描述</label>
                                <input type="text" class="form-control" id="permissiondescription" placeholder="请输入权限描述" name="description" required>
                            </div>
                            <div class="form-group">
                                <label for="resource">相关资源</label>
                                <input type="text" class="form-control" id="resource" placeholder="请输入相关资源" name="resource" required>
                            </div>
                            <div class="form-group">
                                <label for="action">相关操作</label>
                                <input type="text" class="form-control" id="action" placeholder="请输入相关操作" name="action" required>
                            </div>
                            <div class="form-group">
                                <label for="domain">所属域或模块</label>
                                <textarea class="form-control" id="domain" placeholder="请输入所属域或模块" name="domain" required></textarea>
                            </div>
                            <div class="text-center">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
